<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:fragment="common-header(title, link)">
    <meta charset="utf-8">
    <meta content="IE=edge" http-equiv="X-UA-Compatible">
    <meta content="width=device-width, initial-scale=1" name="viewport">

    <meta content="" name="description">
    <meta content="" name="author">
    <link href="/img/favicon.ico" rel="icon">

    <!--/*@thymesVar id="title" type="title"*/-->
    <!--/*@thymesVar id="links" type="links"*/-->
    <title th:replace="${title}">后台管理</title>
    <link rel="stylesheet" th:href="@{/css/bootstrap.min.css}">
    <link rel="stylesheet" th:href="@{/css/bootstrap-table.min.css}">
    <link rel="stylesheet" th:href="@{/css/ie10-viewport-bug-workaround.css}">
    <!-- Custom styles for this template -->
    <link rel="stylesheet" th:href="@{/css/admin/dashboard.css}">
    <link rel="stylesheet" th:href="@{/css/admin/common.css}">
    <link rel="stylesheet" th:href="@{/css/admin/ad_sidebar.css}">
    <th:block th:replace="${link}"/>
</head>
<body>
<!-- 类似指定id为header，复用方法：<div th:replace="commons/header :: header"></div>-->
<nav class="navbar navbar-inverse navbar-fixed-top"  th:fragment="header">
    <div class="container-fluid">
        <div class="navbar-header">
            <button aria-controls="navbar" aria-expanded="false" class="navbar-toggle collapsed" data-target="#navbar" data-toggle="collapse" type="button">
            <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">后台管理界面</a>
        </div>
        <div class="navbar-collapse collapse" id="navbar">
            <ul class="nav navbar-nav navbar-right">
                <li><a th:href="@{/admin/logout}">退出</a></li>
            </ul>
            <form class="navbar-form navbar-right">
                <input class="form-control" placeholder="Search..." type="text">
            </form>
        </div>
    </div>
</nav>
</body>
</html>